package com.example.superoa.model.pojos;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;


/**
 * The persistent class for the kq_overwork_xiang database table.
 * 
 */
@Entity
@Table(name="kq_overwork_xiang")
@NamedQuery(name="KqOverworkXiang.findAll", query="SELECT k FROM KqOverworkXiang k")
public class KqOverworkXiang implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="OX_ID")
	private int oxId;

	@Column(name="OX_TIME")
	private BigDecimal oxTime;

	@Column(name="OX_TYPE")
	private int oxType;

	//bi-directional many-to-one association to KqOverwork
	@ManyToOne
	@JoinColumn(name="O_ID")
	private KqOverwork kqOverwork;

	public KqOverworkXiang() {
	}

	public int getOxId() {
		return this.oxId;
	}

	public void setOxId(int oxId) {
		this.oxId = oxId;
	}

	public BigDecimal getOxTime() {
		return this.oxTime;
	}

	public void setOxTime(BigDecimal oxTime) {
		this.oxTime = oxTime;
	}

	public int getOxType() {
		return this.oxType;
	}

	public void setOxType(int oxType) {
		this.oxType = oxType;
	}

	public KqOverwork getKqOverwork() {
		return this.kqOverwork;
	}

	public void setKqOverwork(KqOverwork kqOverwork) {
		this.kqOverwork = kqOverwork;
	}

}